using System;
using System.ComponentModel.DataAnnotations;

namespace MES_workbench.Domian.Entities
{
    /// <summary>
    /// 即将到期物品 Items Approaching Expiry
    /// </summary>
    public class ItemsApproachingExpiry
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public int ItemsApproachingId { get; set; }

        /// <summary>
        /// 物料编码，如：WPBI2023512698
        /// </summary>
        public string? ItemCode { get; set; }

        /// <summary>
        /// 物料名称，如：开心榛果巧克力
        /// </summary>
        public string? ItemName { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchNo { get; set; }

        /// <summary>
        /// 生产日期，格式：YYYY-MM-DD
        /// </summary>
        public DateTime? ProductionDate { get; set; }

        /// <summary>
        /// 到期日期，格式：YYYY-MM-DD
        /// </summary>
        public DateTime? ExpiryDate { get; set; }

        /// <summary>
        /// 仓库/库位
        /// </summary>
        public string? Warehouse { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        public int StockQuantity { get; set; }

        /// <summary>
        /// false 未删除，true 已删除（软删除）
        /// </summary>
        public bool IsDelete { get; set; }=false;
    }
}
